//
// Created by konglinglong on 2020/9/8.
//

#ifndef CSP_INCLUDE_OSAL_OSMEMORY_H
#define CSP_INCLUDE_OSAL_OSMEMORY_H

#include "commDef.h"

#ifdef __cplusplus
extern "C"
{
#endif

void* OS_MemCalloc(size_t num, size_t size);
void* OS_MemMalloc(size_t size);
void* OS_MemRealloc(void *ptr, size_t size);
void  OS_MemFree(void *ptr);
uint32_t OS_MemGetAllocSize();
uint32_t OS_MemGetAllocCount();
uint32_t OS_MemGetFreeCount();
void OS_MemResetCounter();
void OS_MemDump(void *buffer, uint32_t size);

#ifdef __cplusplus
}
#endif

#endif //CSP_INCLUDE_OSAL_OSMEMORY_H
